package observerNotification;


/**
 * Message: found an error
 * 
 * <p>
 * <ul>
 * <li>Project: 	ChatSystemG3</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see ObserverNotification
 */
public class ErrorObserverNotification extends ObserverNotification{

	private String message;		//Error message to be presented to the user
	private int convId;
	
	/**
	 * Construct 
	 * @param message : Message to be displayed to the user
	 */
	public ErrorObserverNotification(String message){
		this.message=message;
		this.convId=-1;
	}
	
	public ErrorObserverNotification(int convId, String message){
		this.message=message;
		this.convId=convId;
	}
	
	/**
	 * getMessage
	 * @return the message that the error contain
	 */
	public String getMessage(){
		return this.message;
	}
	
	public int getConvId(){
		return this.convId;
	}
}
